package thread.wang_bao_ling.c22.executors.wheel;

/**
 * @Auther: luobiao
 * @Date: 2021/3/20 10:18
 * @Description:
 */
public class MyHashedWheelTimeout implements Runnable{
    private int round;
    private Runnable runnable;

    @Override
    public void run() {
        runnable.run();
    }

    public MyHashedWheelTimeout(Runnable runnable, int round) {
        this.runnable = runnable;
        this.round = round;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public Runnable getRunnable() {
        return runnable;
    }

    public void setRunnable(Runnable runnable) {
        this.runnable = runnable;
    }
}
